#!/bin/bash

# maven 打包

mvn clean package -DskipTests -U -e -B

rm -rf docker/eladmin-system-2.6.jar
cp eladmin-system/target/eladmin-system-2.6.jar docker

# docker image build

cd docker
docker image rm registry.cn-beijing.aliyuncs.com/wychuan/eladmin:latest
docker build -t registry.cn-beijing.aliyuncs.com/wychuan/eladmin:latest .
docker push registry.cn-beijing.aliyuncs.com/wychuan/eladmin:latest
